//
//  IKCode.h
//  IiecgFrameWork
//
//  Created by 123456 on 2017/8/2.
//  Copyright © 2017年 SaltWong. All rights reserved.
//

#ifndef IKCode_h
#define IKCode_h

typedef NS_ENUM(NSInteger,IKCodeType)
{
    IKCodeTypeSuccess = 0,//成功
    IKCodeTypeSDKFailInit = - 1000,//SDK未初始化
    IKCodeTypeSDKNotLogin = - 2000,//SDK未登录
    IKCodeTypeFailIKinit = -3000,//IKInit参数错误
    IKCodeTypeIKEcgCheckFail = -3001,//IKStartEcgCheck参数错误
    IKCodeTypeNotgetsdcardRead = -4000,//未获取sdcard读权限
    IKCodeTypeNotgetsdcardwrite = -4001,//未获取sdcard写权限
    IKCodeTypeNotgetState = -4002,//未获取读取手机状态权限
    IKCodeTypeNotgetLocation = -4003,//未获取定位权限
    IKCodeTypenotgetBluetooth = -4004,//蓝牙未开启
    
    IKCodeTypeBleInitFail = -5000,//蓝牙扫描初始化错误
    IKCodeTypeDecompressionFail = -6000,//心电数据无法解包
    IKCodeTypeWrongPath = -6001,//心电文件路径错误
};

typedef NS_ENUM(NSInteger,IKSystemEvent )
{
    IKSystemEventSuccess = 1000,
    IKSystemEventFail = 1001,
    IKSystemEventNotKnow = -99999//未知异常
};


typedef NS_ENUM(NSInteger,EcgState)
{
    EcgStateBLEUnauthorized = 20000,
    EcgStateBLENotOpen = 20001,
    EcgStateBLEOpened = 20002,
    EcgStateDiscoverBLE = 20003,
    EcgStateBLEConnecting = 20006,
    EcgStateBLEConnectSuccess = 20007,  //
    EcgStateBLEDisconnect = 20008,      //蓝牙连接断开
    
    EcgStateMachineLowPower = 20010,    //设备低电量提醒
    EcgStateHeartValue = 30001,         //检测过程中的实时心率数据
    EcgStateShake = 30002,              //检测过程中手抖,检测过程中, 此状态代码表示身体不稳定因素。例如，当返回此状态码时，可以通过文本或语音提示被检测人保持安静
    EcgStateTime = 30003,               //检测所用时间,单位为秒
    EcgStateError = 30004,              //检测错误
};


#endif /* IKCode_h */
